package com.huanlis.cloud.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * @author lihuan
 * @since 2024/06/26 21:31:03
 */
@Slf4j
@Component
public class MsgListener {


    @JmsListener(destination = "test", containerFactory = "topicListenerFactory")
    public void receive(String msg) {
        log.info("接收到到消息：{}", msg);
    }

}
